﻿using System;


namespace DbConnect
{
    public static class CoolFunctions
    {
        public static int GetIntValue(this System.Data.DataRow Row, String Name)
        {
            return int.Parse(Row[Name].ToString());
        }

        public static String GetStringValue(this System.Data.DataRow Row, String Name)
        {
            return Row[Name].ToString();
        }

        public static Boolean GetBooleanValue(this System.Data.DataRow Row, String Name)
        {
            return Boolean.Parse(Row[Name].ToString());
        }

        public static DateTime GetDateValue(this System.Data.DataRow Row, String Name)
        {
            return DateTime.Parse(Row[Name].ToString());
        }
    }
}
